<%@ page language="java" contentType= "text/html" pageEncoding="UTF-8"%>
<%@include file="/include/common/printuihead1.jsp"%>
<%@include file="/include/common/printuihead2.jsp"%>
<%
	page1.getPageTitle().setTitle("列印測試");
	ResultSet rs = null;

%>
<jm:form>
<%
if(!form.gpsv("ht_no").equals("")){
%>
<jm:layout postion="north">
	<jm:toolbar searchDisabled="true"/>
</jm:layout>
<jm:layout postion="center">
	<jm:error></jm:error>
	<jm:dp id="dp1" data="<%=Utils.TAG_FORM%>" tabSize="0"  border="1" layout="false">
		<jm:tab colModel="33%;33%;33%" width="<%=width%>" align="center" layout="false">
			<jm:field captionDisplay="false" keep="true" colspan="3">
				<div align="center" style="font-size: 18px;font-weight: bold;">外發出廠證明</div>
			</jm:field>
			
			<jm:field captionDisplay="false" keep="true" colspan="3">
				<div align="right">
				<img src="../barcode?data=<%=form.gpsv("ht_no")+form.gpsv("ci")%>&type=Code128&width=1&height=1&resolution=100" border="0" />
				</div>
			</jm:field>
			
			<jm:field caption="合同号" captionWidth="60px"><span id="ht_no" bind="true"></span></jm:field>
			<jm:field caption="款式" captionWidth="60px"><span id="style_cus" bind="true"></span></jm:field>
			<jm:field caption="列印日期"  captionWidth="60px"><span id="printdate" bind="true"></span></jm:field>
			
			<jm:field caption="發件廠別" captionWidth="60px"><span id="factory" bind="true" params="factory,dept_no">%1$s--%2$s</span></jm:field>
			<jm:field caption="件數" captionWidth="60px"><span id="qty" bind="true"></span></jm:field>
			<jm:field caption="加工點名稱" captionWidth="60px"><span id="chfullname" bind="true"></span></jm:field>	
			
			<jm:field caption="批次" captionWidth="60px"><span id="ci" bind="true">第%1$s批</span></jm:field>
			<jm:field caption="重量" captionWidth="60px"><span id="wt" bind="true"></span></jm:field>	
		</jm:tab>
	</jm:dp>
	<br>
	<jm:table id="grid1" dataSet="<%=ret.getSerchResult()%>" width="<%=width%>" align="center">
		<jm:thead >
			<tr>
				<td width="100px">代號</td>
				<td width="100px">工序</td>
				<td width="100px">工序名稱</td>
			</tr>
		</jm:thead>
		<jm:tbody>
			<% rs = (ResultSet)ret.getTableRow();%>
			<tr>
				<td><%=utils.getRsString(rs,"dh_no")%></td>
				<td><%=utils.getRsString(rs,"gx_no")%></td>
				<td><%=utils.getRsString(rs,"gx_name")%></td>
			</tr>
		</jm:tbody>
		<jm:tfoot>
			
		</jm:tfoot>
	</jm:table>
	
	<br>
	<table width="<%=width%>" align="center" border="0" cellpadding="0" cellspacing="0">  
		<tr align="left">
			    <td  align="left" width="40%">&nbsp;</td>
			    <td  align="right" nowrap="nowrap">廠長_____________________	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主管_____________________	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;製單人_____________________</td>
			</tr>
	</table>
</jm:layout>
<%
}
%>
</jm:form>
<%@include file="/include/common/printuiend.jsp"%>